package com.huike.clues.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.huike.common.annotation.Excel;
import com.huike.common.core.domain.BaseEntity;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.huike.common.annotation.Excel;
import com.huike.common.core.domain.BaseEntity;

import java.util.Date;


/**
 * 线索对象 clues
 * 
 * @author ruoyi
 * @date 2024-07-07
 */

@EqualsAndHashCode(callSuper = true)
@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Clues extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @Excel(name = "主键id")
    private Long id;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 渠道来源 */
    @Excel(name = "渠道来源")
    private Long channel;

    /** 活动信息 */
    private Long activityId;

    /** 客户姓名 */
    private String name;

    /** 性别 0:男  1:女 */
    private Long sex;

    /** 年龄 */
    private String age;

    /** 微信 */
    private String weixin;

    /** qq号 */
    private String qq;

    /** 线索状态 0:待跟进 2:跟进中 */
    @Excel(name = "线索状态 0:待跟进 2:跟进中")
    private Long status;

    /** 线索0/线索池1 */
    private Integer clueStatus;

    /** 线索归属人id */
    @Excel(name = "线索归属人id")
    private Long ownerId;

    /**线索归属人 */
    @Excel(name = "线索归属人")
    private String owner;

    /**活动信息 */
    @Excel(name = "活动信息")
    private String activityName;

    /**开始创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginCreateTime;

    /**最后创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endCreateTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phone", getPhone())
            .append("channel", getChannel())
            .append("activityId", getActivityId())
            .append("name", getName())
            .append("sex", getSex())
            .append("age", getAge())
            .append("weixin", getWeixin())
            .append("qq", getQq())
            .append("status", getStatus())
            .append("falseNumber", getClueStatus())
            .append("owner", getOwner())
            .append("ownerId", getOwnerId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("activityName",getActivityName())
            .append("beginCreateTime",getBeginCreateTime())
            .append("endCreateTime",getEndCreateTime())
            .toString();
    }
}
